package com.wy.controller;

import com.wy.dao.PanyMent;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 33117
 * @version 1.0
 * @data 2025/2/28 23:43
 */
@RestController
public class PayMentController {

    /*
     * 该方法是支付
     */
    @RequestMapping("payment/{id}")
    public ResponseEntity<PanyMent> payment(@PathVariable("id") Integer id){
        PanyMent panyMent = new PanyMent();
        panyMent.setId(id);
        panyMent.setName("支付成功");
        return ResponseEntity.ok(panyMent);
    }
}
